package com.houhanzhi.constant;

public class RedisKey {

    /**
     * 验证码缓存key:第一个是类型，第二个是唯一标识（手机号/邮箱）
     */
    public static final String CHECK_CODE_KEY = "cache:code:%s:%s";

    /**
     * 提交订单令牌token缓存key:第一个是用户，第二个是token
     */
    public static final String SUBMIT_ORDER_TOKEN_KEY = "order:submit-token:%s:%s";

    /**
     * 防重提交订单缓存key:参数式-MD5(ip+方法+类+用户)
     */
    public static final String SUBMIT_ORDER_PARAM_KEY = "order:submit-param:%s";

    /**
     * 1天可用的总的流量包
     */
    public static final String DAY_TOTAL_TRAFFIC = "lock:traffic:day_total:%s";
}
